#!/usr/bin/env python
# -*- coding: utf-8 -*-

#
# This program is free software; you can redistribute it and/or modify  
# it under the terms of the GNU General Public License as published by  
# the Free Software Foundation; either version 2 of the License, or     
# (at your option) any later version.                                   
#                                                                         
# A copy of the license can be found in the license.txt file supplied   
# with this software or at: http://www.gnu.org/copyleft/gpl.html       
#


class   QueryFilter(object) :
    def __init__(self, row_key=None, query_path=None) :
        self.row_key = row_key
        self.query_path = query_path
        ## __init__()

    def getColumnFamilyName(self) :
        return self.query_path.column_family_name
        ## getColumnFamilyName()

    ## class QueryFilter


class   NamesQueryFilter(QueryFilter) :
    def __init__(self, row_key, query_path, column_names) :
        super(NamesQueryFilter, self).__init__(row_key, query_path)
        self.column_names = list(column_names)
        self.column_names.sort()
        ## __init__()
    ## class NamesQueryFilter


